Release 10.1A: OpenEdge Development:
Java Open Clients
Extended methods
OpenEdge provides the following methods to extend the Java SDO
DataGraphand implement theProDataGraphclass.getProChangeSummary( )
Returns the
ProChangeSummaryobject associated with thisProDataGraph:
For more information on the
ProChangeSummaryclass, see the "ProChangeSummary class" section.getProDataObjects( )
Returns the list of
ProDataObjectinstances for the specified temp-table within theProDataGraph, as specified by the overloaded methods:
tableNameSpecifies the 4GL name of a temp-table that identifies this
ProDataObjectlist.tableIdxSpecifies the 0-based index into the list of temp-table names returned by the
getTableNames()method and that corresponds to the specified temp-table. (See the "getTableNames( )" section.)For more information on the
ProDataObjectclass, see the "ProDataObject class" section.createProDataObject( )
Returns a new
ProDataObjectinstance for the specified temp-table within theProDataGraph. A singleProDataObjectcorresponds to an individual row (record) in the temp-table.
tableNameSpecifies the 4GL name of a temp-table that identifies the meta data used to create the
ProDataObject. If there is not aProDataObjectMetaDataobject contained within thisProDataGraphfor the specified temp-table name, the method throws andException. For more information on theProDataObjectMetaDataclass, see the "ProDataObjectMetaData class" section.addProDataObject( )
Adds the
ProDataObjectinstance to itsProDataObjectcollection within theProDataGraph, as specified by the overloaded methods:
dataObjSpecifies the
ProDataObjectto add.indexSpecifies the location in the
ProDataObjectcollection to add theProDataObject. If you do not specifyindex, the method adds theProDataObjectto the end of the collection.setChildTableReferences( )
Populates (child) reference property lists for specified
ProDataObjectcollections contained in thisProDataGraph, as specified by the overloaded methods:
tableIdxSpecifies the 0-based index into the list of temp-table names returned by the
getTableNames()method. (See the "getTableNames( )" section.) The specified temp-table (ProDataObjectcollection) corresponds to the parent table of a data-relation (ProDataRelationMetaDataobject) contained in theProDataGraph.tableNameSpecifies the 4GL name of a temp-table (
ProDataObjectcollection) contained in theProDataGraph. The specifiedProDataObjectcollection corresponds to the parent table of a data-relation (ProDataRelationMetaDataobject) contained in theProDataGraph.If you do not specify
tableIdxortableName, the method populates the reference property lists for allProDataObjectcollections involved as parent tables in data-relations contained in theProDataGraph.You only need to call this method when building a
ProDataGraphobject that contains data-relations, typically after adding one or moreProDataObjectinstances that participate in data-relations contained in theProDataGraph. A reference property list is a list of references in aProDataObjectthat point to otherProDataObjectinstances contained by a singleProDataObjectcollection that is a child table of theProDataObjectcontaining the references. This parentProDataObjectcontains one reference property list for eachProDataRelationMetaDatathat theProDataObjectis involved in as a parent. For more information on theProDataRelationMetaDataclass, see the "ProDataRelationMetaData class" section.getMetaData( )
Returns the
ProDataGraphMetaDataobject contained by thisProDataGraph:
For more information on the
ProDataGraphMetaDataclass, see the "ProDataGraphMetaData class" section.getProDataGraphName( )
Returns the name of this
ProDataGraphobject:
This name is typically identical to the Progress 4GL name of a ProDataSet to which this
ProDataGraphobject maps as a parameter of a proxy application service method.getTableNames( )
Returns a
Stringarray of the table names that identify theProDataObjectcollections in thisProDataGraphobject.
Each table name is typically identical to the Progress 4GL name of a temp-table contained by a corresponding ProDataSet to which this
ProDataGraphmaps as a parameter of a proxy application service method.getNumTables( )
Returns the number of
ProDataObjectcollections (number of temp-tables) in thisProDataGraphobject:
hasError( )
Returns
trueif the AppServer returned an error message for thisProDataGraphpassed as an application service parameter:
It is set on return from the AppServer when an update to a data source of the corresponding ProDataSet parameter is not successful.
acceptChanges( )
Clears out the list of changes in the
ProChangeSummaryof theProDataGraph, enabling theProDataGraphto accept a new set of changes:
This method has the same behavior as the
ChangeSummary.beginLogging()method. For more information, see the "ProChangeSummary class" section.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |